package com.dao;

import com.entity.User;

import java.sql.SQLException;
import java.util.List;

public interface UserDao {
    abstract User selectUser(String u_name, Integer u_age, String u_sex) throws SQLException;
    abstract User selectOneUser(Integer u_id) throws SQLException;
    abstract boolean update(Integer u_id,String u_name,String u_pwd,Integer u_age,String u_sex) throws SQLException;
    abstract boolean deleteUser(Integer u_id) throws SQLException;
    abstract boolean insertUser(String u_name,String u_pwd,Integer u_age,String u_sex) throws SQLException;
    abstract List<User> userAll() throws SQLException;
    abstract User login(String u_name,String u_pwd) throws SQLException;
}
